Set-Up

Caution

This section is under development. Thank you for your patience.

Using Bash in Quarto

Follow the instructions on the Quarto website to configure your HTML documents to run Bash code chunks.

Document header

Specify the engine field of in the YAML header of the .qmd file:

---
title: "Using Bash"
engine: knitr
---

You can also add any knitr chunk options:

knitr:
  opts_chunk: 
    collapse: true

Code Chunks

The code chunks function like R or Python code chunks:

```{bash}
echo "foo" 
```

You caan also specify the code chunk options with the hash-pipe:

```{bash}
#| code-fold: show
#| code-summary: 'show/hide echo'
echo "foo" 
```
show/hide echo
echo "foo"
## foo

Terminal (macOS)

Virtual Machines

See a typo, error, or something missing?

Please open an issue on GitHub.